home *** CD-ROM | disk | FTP | other *** search
- class KidExclamation extends GameObject
- {
- var inner;
- var engine;
- var from;
- function KidExclamation()
- {
- super();
- this.inner.stop();
- this._visible = false;
- }
- function init(e)
- {
- this.engine = e;
- this.from = this.engine.exclamationScaleTarget;
- this.n = this.engine.indQueue.shift();
- }
- function setState(s)
- {
- switch(s)
- {
- case KidMc.OK:
- this._visible = false;
- this.stop();
- break;
- case KidMc.TIRED:
- this._visible = true;
- this.inner.gotoAndStop(KidMc.TIRED);
- this.play();
- break;
- case KidMc.KNACKERED:
- this._visible = true;
- this.inner.gotoAndStop(KidMc.KNACKERED);
- }
- }
- }
-